package com.myc.subject.domain.convert;

import com.myc.subject.domain.entity.SubjectAnswerBO;
import com.myc.subject.domain.entity.SubjectInfoBO;
import com.myc.subject.infra.basic.entity.SubjectBrief;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 将SubjectAnswerBO转为 SubjectBrief,使用mapstruct的工厂进行转换
 * */
@Mapper
public interface BriefSubjectConverter {

    BriefSubjectConverter INSTANCE = Mappers.getMapper(BriefSubjectConverter.class);

    SubjectBrief convertBoToBrief(SubjectInfoBO subjectAnswerBO);

}
